package lab12.com.acme.domain.bank;

import java.util.Arrays;

import lab12.com.acme.domain.client.Client;

public class Bank {
	private final Client[] clients;
	private int maxClients = 0;
	
	@Override
	public String toString() {
		return "Bank clients=\n" + Arrays.toString(clients);
	}

	public Bank(final int bankSize)
	{
		clients = new Client[bankSize];
	}

	public Client addClient(final Client client) 
	{
		clients[maxClients++] = client;
		return client;
	}
	
	public Client[] getClients()
	{
		return clients;
	}

	public int getBankSize()
	{
		return maxClients;
	}

}
